//
//  RescueItem.swift
//  feiyu444
//
//  Created by hanweiguang on 2018/12/19.
//  Copyright © 2018年 hanweiguang. All rights reserved.
//

import UIKit

//救援item编写
class RescueItem: ZJBaseTableCell {
    private lazy var layerView  : UIView = UIView()
    private lazy var titleLab : UILabel = UILabel()
        private lazy var payment : UILabel = UILabel()
        private lazy var address : UILabel = UILabel()
    override func zj_initWithView() {
        
        self.layerView = UIView.zj_createView(bgClor: UIColor.color(hexString: "#f9f9f9"), supView: self.contentView) { (make) in
            
            make.height.equalTo(150)
            make.center.equalToSuperview()
            make.width.equalTo(kScreenWidth-15)
            
//            make.bottom.equalTo(-Adapt(10))
//            make.top.equalTo(Adapt(20))
        }
        self.layerView.layer.cornerRadius = 6.0
        self.layerView.layer.borderColor =  UIColor.color(hexString: "#d9d9d9").cgColor
        self.layerView.layer.borderWidth = 0.5
        
        
        self.titleLab = UILabel.zj_createLabel(text: "订单号码:132511458774", textColor: UIColor.color(hexString: "#2A2A2A"), font: FontSize(16), supView: self.layerView) { (make) in
            make.left.equalTo(20)
            make.top.equalTo(self.layerView.snp.top).offset(20)
        }
 
         UILabel.zj_createLabel(text: "进行中", textColor: UIColor.color(hexString: "#FC5B56"), font: FontSize(16), supView: self.layerView) { (make) in
            make.right.equalTo(-20)
           make.top.equalTo(self.layerView.snp.top).offset(20)
        }
        
        self.address = UILabel.zj_createLabel(text: "安徽省合肥市蜀山区井冈镇C3栋8楼", textColor: UIColor.color(hexString: "#2A2A2A"), font: FontSize(16), supView: self.layerView) { (make) in
            make.top.equalTo(titleLab.snp.bottom).offset(10)
            make.left.equalTo(20)
        }
   
       self.payment  = UILabel.zj_createLabel(text: "已支付: ¥70", textColor: UIColor.color(hexString: "#2A2A2A"), font: FontSize(16), supView: self.layerView) { (make) in
            make.top.equalTo(address.snp.bottom).offset(10)
            make.left.equalTo(20)
        }
        
        UILabel.zj_createLabel(text: "2018年12月19日16:24:24", textColor: UIColor.color(hexString: "#747474"), font: FontSize(14), supView: self.layerView) { (make) in
            make.top.equalTo(payment.snp.bottom).offset(10)
            make.left.equalTo(20)
        }
        
        
    }

    

}
